Ext.define("AM.view.Test",{
	extend:'Ext.grid.Panel',
	title:'TestDemo',
	alias:'widget.test',
//	width:600,
//	height:280,
	layout: 'fit',
	frame:true,
	columnLines: true,
	columns:[
	     {text:'name',dataIndex:'name',width:100,locked:true},
	     {text:'age',dataIndex:'age',width:100},
    ],
    selType:'checkboxmodel',
    multiSelect:true,
    store:'Test',
    tbar:[
          {xtype:'button',text:'add',iconCls:'table_add'},
          {xtype:'button',text:'remove',iconCls:'table_remove'},
          {xtype:'button',text:'edit',iconCls:'table_edit'},
          {xtype:'button',text:'show',iconCls:'table_show'}
    ],
    dockedItems:[
         {
        	 xtype:'pagingtoolbar',
        	 store:'Test',
        	 dock:'bottom',
        	 displayInfo:true
         }
    ],
    plugins:[
     		Ext.create("Ext.grid.plugin.CellEditing",{
     			clicksToEdit : 2
     		})
    ],
    initComponent:function(){
		this.callParent(arguments);
	}
	
});